import java.util.*;

/*
 *@Student 张策
 */
public class Main {
    public static void main(String[] args) {
        Map map = new HashMap();
        map.put("01",new work1("zc1",16000));
        map.put("02",new work1("zc2",18000));
        map.put("03",new work1("zc3",28000));
        Set set = map.entrySet();
        Iterator iterator = set.iterator();
        while (iterator.hasNext()) {
            Map.Entry w2= (Map.Entry) iterator.next();
            work1 value = (work1) w2.getValue();
            if (value.getMoney()>=18000){
                System.out.println(value);
            }
        }
        System.out.println("=========");
        for (Object o :set) {
            Map.Entry entry=(Map.Entry) o;
            work1 w1 = (work1) entry.getValue();
            if (w1.getMoney()>=18000)
            System.out.println(entry.getKey()+"-"+entry.getValue());
        }

    }
}